public class Main {
	public static void main(String[] args ) {	
		int i,k;
		float sum=0,ave,max;
		int b[]= {0,0,0,0,0};		
		float a[]={10,20,30,40,50,60,70,80,90,100};
		i=a.length;
		for(k=0;k<i;k++)
	    sum=sum+a[k];
		ave=sum/i;
		max=0;
		for(k=0;k<i;k++)
			if(a[k]>max)
				max=a[k];
		for(k=0;k<i;k++)
		switch((int)a[k]/10)
		{
		case 10:
		case 9:b[4]++;break;
		case 8:b[3]++;break;
		case 7:b[2]++;break;
		case 6:b[1]++;break;
		default:b[0]++;break;
		}
		System.out.println("最高成绩："+max);
		System.out.println("平均成绩："+ave);
		System.out.println("优："+b[4]);
		System.out.println("良："+b[3]);
		System.out.println("中："+b[2]);
		System.out.println("及格："+b[1]);
		System.out.println("不及格："+b[0]);
	}		 
}